package com.acc.store.service;

import com.acc.store.entity.Orders;
import com.acc.store.vo.CountVo;
import com.acc.store.vo.OrderVo;
import com.acc.store.vo.UserOrderVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
* @author 10067
* @description 针对表【order(购物订单表)】的数据库操作Service
* @createDate 2023-10-13 18:05:08
*/
public interface OrderService extends IService<Orders> {

    IPage getPage(Map<String, Object> params);

    Long create(Long userId);

    OrderVo total(Long orderid);

    void clear();

    void submit(Long orderId);

    List<CountVo> counts();

    List<UserOrderVo> getData();

    List<Map<String, BigDecimal>> getLine();
}
